package com.example.leoss.zhuye.Geren;

import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.leoss.R;
import com.example.leoss.denglu_zhuce.DengluActivity;

public class ShezhiActivity extends AppCompatActivity {

    private TextView mZhanghaoText;
    private SharedPreferences sp;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shezhi);

        init();
    }

    private void init() {

        mZhanghaoText = (TextView) findViewById(R.id.zhanghao_text);

        sp = getSharedPreferences("confi", MODE_PRIVATE);
        String name1 = sp.getString("myname", null);
        mZhanghaoText.setText(name1);
    }

    public void qiehuan(View view) {

        startActivity(new Intent(ShezhiActivity.this, DengluActivity.class));
        finish();
    }
}
